import request from '@/utils/request'

export function mobileLogin(data) {
  return request({
    url: '/mobile/login',
    method: 'post',
    data
  })
}

export function indexList(data) {
  return request({
    url: '/home/index',
    method: 'post',
    data
  })
}

export function bannerList(data) {
  return request({
    url: '/home/getBanners',
    method: 'post',
    data
  })
}

export function getContact(data) {
  return request({
    url: '/home/getContact',
    method: 'get',
    params: data
  })
}

export function companyProcess(data) {
  return request({
    url: '/home/companyProcess',
    method: 'post',
    data
  })
}

export function getMap(data) {
  return request({
    url: '/home/getShop',
    method: 'get',
    params: data
  })
}

export function getNews(data) {
  return request({
    url: '/home/news',
    method: 'post',
    data
  })
}

export function getNewsDetails(data) {
  return request({
    url: '/home/newsDetail',
    method: 'get',
    params: data
  })
}

export function goodsCate(data) {
  return request({
    url: '/home/goodsCate',
    method: 'post',
    data
  })
}

export function getGoods(data) {
  return request({
    url: '/home/getGoods',
    method: 'post',
    data
  })
}

export function applyProductAdd(data) {
  return request({
    url: '/home/applyProductAdd',
    method: 'post',
    data
  })
}

export function caseFun(data) {
  return request({
    url: '/home/inspiration',
    method: 'post',
    data
  })
}

export function caseDetail(data) {
  return request({
    url: '/home/inspirationDetail',
    method: 'get',
    params: data
  })
}

export function login(data) {
  return request({
    url: '/home/login',
    method: 'post',
    data
  })
}

export function register(data) {
  return request({
    url: '/home/register',
    method: 'post',
    data
  })
}

export function getVerifyCode(data) {
  return request({
    url: '/home/getVerifyCode',
    method: 'post',
    data
  })
}

export function agentCenter(data) {
  return request({
    url: '/home/agentCenter',
    method: 'post',
    data
  })
}

export function agentCenterFileList(data) {
  return request({
    url: '/home/agentCenterFileList',
    method: 'post',
    data
  })
}

export function getApplyCart(data) {
  return request({
    url: '/home/getApplyCart',
    method: 'post',
    data
  })
}

export function applyProduct(data) {
  return request({
    url: '/home/applyProduct',
    method: 'post',
    data
  })
}

export function applyChecked(data) {
  return request({
    url: '/home/applyChecked',
    method: 'post',
    data
  })
}

export function editAddress(data) {
  return request({
    url: '/home/editAddress',
    method: 'post',
    data
  })
}

export function search(data) {
  return request({
    url: '/home/search',
    method: 'post',
    data
  })
}

export function getDownload(data) {
  return request({
    url: '/home/getDownload',
    method: 'post',
    data
  })
}

export function ApplyCartRemove(data) {
  return request({
    url: '/home/ApplyCartRemove',
    method: 'post',
    data
  })
}
